package com.woniuxy02;

import java.util.Scanner;

/**
 * @author 作者
 * @create 2025-05-23 14:03
 */
public class Test03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("输入一个数");
        int numA = sc.nextInt();
        System.out.println("输入一个数");
        int numB = sc.nextInt();
        System.out.println("输入一个数");
        int numC = sc.nextInt();
//        int max;
//        if (numA > numB) {
//            if(numA > numC){
//                max = numA;
//            }else{
//                max = numC;
//            }
//        }else{
//            if(numB > numC){
//                max = numB;
//            }else{
//                max = numC;
//            }
//        }
        int max=(numA>numB)  ?   (numA>numC)?numA:numC:    (numB>numC)?numB:numC  ;
        System.out.println(max);
    }
}
